package com.powernode.feign.sentinel;

import com.powernode.domain.Basket;
import com.powernode.feign.OrderBasketFeign;
import com.powernode.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @version 1.0
 * @Date 2024/8/22 17:39
 * @Author 付~~~
 */

/**
 * 订单调用购物车远程调用的feign接口的熔断处理
 */
@Component
@Slf4j
public class OrderBasketFeignSentinel implements OrderBasketFeign {
    @Override
    public Result<List<Basket>> getBasketListByIds(List<Long> ids) {
        log.error("远程调用失败：根据购物车id集合查询购物车对象集合");
        return null;
    }

    @Override
    public Result<Boolean> removeBasketByOpenIdAndSkuIds(Map<String, Object> param) {
        log.error("远程调用失败：根据会员openId和商品skuId集合删除购物车记录");
        return null;
    }
}
